<?php

declare(strict_types=1);

return [
    /**
     * 邀请有奖活动
     */
    'invite' => [
        //常规奖励配置
        'reward' => [
            //被邀请方充值奖励比
            'recharge' => 0.3,
            //被邀请方收入奖励比
            'consume' => 0.05,
        ],
        //各活动相关配置
        'act' => [
            [
                'enable' => true,
                'valid_time' => [
                    env('APP_DEBUG') ? '2022-03-01 11:00:00' : env('INVITE_ACT_START', '2022-06-01 00:00:00'),
                    env('APP_DEBUG') ? '2022-03-01 13:00:00' : env('INVITE_ACT_END', '2022-07-01 00:00:00'),
                ],
                //充值奖励
                'reward_recharge' => 0.0,
                //收益奖励
                'reward_consume' => 0.0,
            ]
        ],
        //绑定邀请有效时间（分钟）
        'bind_expire' => env('APP_DEBUG') ? 5 : 0,
    ],

    //圣诞节
    'christmas_time' => ['2021-12-23', '2022-01-01'],

    //每日任务
    'daily_task' => [
        //声优任务
        'host' => [
            // 1 => ['id' => 1, 'name' => '私信消息', 'desc' => '向异性发送消息不少于100条', 'reward_desc' => '可领取50金币', 'reward' => 50, 'icon' => 'icons/msg.png', 'action' => 'main'],
            // ['id' => 2, 'name' => '私信好友', 'desc' => '至少向50位异性发送信息', 'reward_desc' => '可领取50金币', 'reward' => 50, 'icon' => 'icons/msg_friend.png', 'action' => 'main'],
//            7 => ['id' => 7, 'name' => '拨打速配', 'desc' => '拨打10个速配视频通话', 'reward_desc' => '可领取80金币', 'reward' => 80, 'icon' => 'icons/answer_call.png', 'action' => 'main', 'task_total' => 10, 'task_unit' => '个'],
            6 => ['id' => 6, 'name' => '接听视频', 'desc' => '接听视频时长不低于30分钟', 'reward_desc' => '可领取80金币', 'reward' => 80, 'icon' => 'icons/msg.png', 'action' => 'main', 'task_total' => 30, 'task_unit' => '分钟'],
            3 => ['id' => 3, 'name' => '接听语音', 'desc' => '接听语音时长不低于30分钟', 'reward_desc' => '可领取60金币', 'reward' => 60, 'icon' => 'icons/answer_call.png', 'action' => 'main', 'task_total' => 30, 'task_unit' => '分钟'],
            4 => ['id' => 4, 'name' => '发布动态', 'desc' => '至少发布2条动态且通过审核', 'reward_desc' => '可领取5金币', 'reward' => 5, 'icon' => 'icons/moment.png', 'action' => 'moment', 'task_total' => 2, 'task_unit' => '条'],
            5 => ['id' => 5, 'name' => '邀请好友', 'desc' => '至少邀请一位好友完成注册', 'reward_desc' => '可领取50金币', 'reward' => 50, 'icon' => 'icons/invite.png', 'action' => 'invite', 'task_total' => 1, 'task_unit' => ''],
        ],
        //普通用户任务
        'user' => [
            101 => ['id' => 101, 'name' => '充值金币', 'desc' => '累积充值金币不少于1000金币', 'reward_desc' => '可领取50金币', 'reward' => 50, 'icon' => 'icons/recharge.png', 'action' => 'recharge', 'task_total' => 1000, 'task_unit' => '金币'],
            // 105 => ['id' => 105, 'name' => '拨打视频', 'desc' => '拨打视频时长不低于5分钟', 'reward_desc' => '可领取10金币', 'reward' => 10, 'icon' => 'icons/msg.png', 'action' => 'main', 'task_total' => 5, 'task_unit' => '分钟'],
            // 102 => ['id' => 102, 'name' => '拨打语音', 'desc' => '拨打语音时长不低于5分钟', 'reward_desc' => '可领取10金币', 'reward' => 10, 'icon' => 'icons/answer_call.png', 'action' => 'main', 'task_total' => 5, 'task_unit' => '分钟'],
            // 103 => ['id' => 103, 'name' => '发布动态', 'desc' => '发布动态至少2条', 'reward_desc' => '可领取20金币', 'reward' => 20, 'icon' => 'icons/moment.png', 'action' => 'moment'],
            104 => ['id' => 104, 'name' => '邀请好友', 'desc' => '至少邀请一位好友完成注册', 'reward_desc' => '可领取50金币', 'reward' => 50, 'icon' => 'icons/invite.png', 'action' => 'invite', 'task_total' => 1, 'task_unit' => ''],
        ],

        //普通用户任务
        'newly' => [
            201 => ['id' => 201, 'name' => '完成手机认证', 'desc' => '', 'reward_desc' => '奖励50金币', 'reward' => 50, 'icon' => 'icons/recharge.png', 'action' => 'verify'],
            202 => ['id' => 202, 'name' => '完成个人资料', 'desc' => '', 'reward_desc' => '奖励2金币', 'reward' => 2, 'icon' => 'icons/msg.png', 'action' => 'profile'],
            203 => ['id' => 203, 'name' => '完善个性标签', 'desc' => '', 'reward_desc' => '奖励2金币', 'reward' => 2, 'icon' => 'icons/answer_call.png', 'action' => 'profile'],
            204 => ['id' => 204, 'name' => '完善专访', 'desc' => '', 'reward_desc' => '奖励2金币', 'reward' => 2, 'icon' => 'icons/invite.png', 'action' => 'profile'],
        ],

        //私聊句数
        'msg_num_lmt' => env('APP_DEBUG') ? 10 : 100,
        //私聊用户数
        'msg_user_lmt' => env('APP_DEBUG') ? 5 : 50,
        //呼叫-语聊时长(s)
        'call_lmt' => env('APP_DEBUG') ? 10 : 300,
        //接听-语聊时长(s)
        'answer_lmt' => env('APP_DEBUG') ? 10 : 1800,
        //主播福利电话拨打数量
        'host_free_call_lmt' => env('APP_DEBUG') ? 2 : 10,
        //发布动态
        'moment_pub_lmt' => env('APP_DEBUG') ? 2 : 2,
        //邀请好友
        'invite_lmt' => env('APP_DEBUG') ? 1 : 1,
        //充值(分)
        'pay_amount_lmt' => env('APP_DEBUG') ? 200 : 10000,
    ],

    //系统礼物
    'sys_gift' => [
        //每人一天最多送3次
        'max_times_perday' => 30,
        //每人一次最多送10个人
        'max_host_perday' => 3,
        //一天赠送总数
        'max_perday' => 15000,
        //每人给单个声优赠送礼物数限制
        'max_gift_num_to_one' => 1,
        //礼物有效时间(s):0-永久有效
        'expire_time' => env('APP_DEBUG') ? 120 : 180,
    ],

    //天天福利
    'daily_free' => [
        //主播呼叫引导充值分成比例
        'recharge' => 0.2,
        //主播一天呼叫次数
        'host_call_times' => env('APP_DEBUG') ? 30 : 20,
        //天天福利 - 男用户一天被主播呼叫的次数
        'user_called_times' => env('APP_DEBUG') ? 30 : 3,
    ],

    //充值活动
    'recharge' => [
        'new' => [
            'discount' => '8.6',
            'new_price' => env('APP_DEBUG') ? 0.01 : 15,
            'old_price' => 28.8,
            'coin' => 288,
            'subject_id' => 100,
            'act_time' => 7200,
        ],
        'old' => [
            'discount' => '9',
            'new_price' => env('APP_DEBUG') ? 0.02 : 45,
            'old_price' => 50,
            'coin' => 500,
            'subject_id' => 101,
            'act_time' => 7200,
        ],
    ],

    //主播任务
    'host_task_valid' => env('HOST_TASK_VALID', '2022-01-22'),
    'host_task' => [
        'done_reg' => ['coin' => 2, 'title' => '完成注册'],
        'real_person' => ['coin' => 5, 'title' => '实名认证'],
        'real_avatar' => ['coin' => 7, 'title' => '真人头像认证'],
        'fix_profile' => ['coin' => 5, 'title' => '完善资料'],
        'say_hi' => ['coin' => 2, 'title' => '完成搭讪'],
        'msg_back' => ['coin' => 3, 'title' => '回复男生消息'],
        'big_gift' => ['coin' => 20, 'title' => '完成全部领取大礼包'],
    ],

    // 新人女用户回复礼包
    'new_girl_task_valid' => env('NEW_GIRL_TASK_VALID', '2023-03-12'),
];
